#if !defined(ximera_math_obb_hpp)
#define ximera_math_obb_hpp

// -----------------------------------------------------------

#include <ximera/math/vector3.hpp>
#include <ximera/math/matrix3.hpp>

namespace ximera { namespace math
{
    class XIMERA_API Obb
    {
    public:
        Vector3 center;
        Vector3 extents;
        Matrix3 orientation;

    public:
        Obb();
        Obb(Vector3 const& center, Vector3 const& extents);
        Obb(Vector3 const& center, Vector3 const& extents, Matrix3 const& orientation);

        bool intersects(Obb const& box) const;
    };
}}

#include <ximera/math/inline/obb.inl>

// -----------------------------------------------------------

#endif